package com.jason.kotlin.gank.api

import com.jason.kotlin.gank.model.ZhiXinApiResponse
import com.jason.kotlin.gank.model.ZhiXinResultsBean
import retrofit2.http.GET
import retrofit2.http.Headers
import retrofit2.http.Query

/**
 * @description: ZhiXinService
 *
 * @author ChenBaoyang
 * @date 4/27/21 10:30
 */
interface ZhiXinService {

    @Headers("Cache-Control: public, max-age=120")
    @GET("/v3/life/suggestion.json")
    suspend fun getLifeSuggestion(
        @Query("key") key: String?,
        @Query("location") location: String?
    ): ZhiXinApiResponse<ZhiXinResultsBean>

}